<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子定位的应用</title>
    <style>
    *{
        margin:0;
        padding: 0;
        

    }
    .fubox{
        position: relative;
        background-color: aqua;
        
        margin:  50px auto;
        width: 400px;
        height: 300px;

    }
    .zibox{
        position: absolute;
        width: 90%;
        height: 80%;
        left: 5%;
        top: 10%;
        border: 1px solid pink;
    }
    .biaoti{
        position: absolute;
        color: rgb(255, 0, 0);
        left: 50px;
        top: 20px;
        background-color: aqua;
        z-index: 1;
    }
    .form{
        position: absolute;
        left: 30px;
        top: 60px;

    }
    .mgn{
        position: absolute;
        left: 100px;
        top: 80px;
      
    }
    </style>
</head>
<body>
    <div class="fubox">
        <div class="biaoti">
                会员注册
            </div>
        <div class="zibox">
            <div class="form">
            <form action="#" method="post" >
                <p >
                   <span> 用户账号</span>
                   <input type="text" placeholder="********" maxlength="8"/>
                </p>
                <p >
                    <span>密码</span>
                    <input type="password" size="20">
                </p>
                <p class="mgn">
                    <span></span>
                    <input type="submit" value="提交" class="btn"/>
                    <input type="reset" value="取消" class="btn"/>
                </p>

            </form>
            </div>
        </div>
    </div>
</body>
</html>